<template>
  <div v-if="roles.includes('user')">
    <user/>
  </div>
  <div v-else-if="roles.include('admin')">
    <admin/>
  </div>

</template>

<script>
import {mapGetters} from "vuex";
import user from '@/views/profile/user'
import admin from '@/views/profile/admin/account'
export default {
  name: "profile",
  components:{user,admin},
  computed:{
    ...mapGetters(['roles'])
  }
}
</script>

<style scoped>

</style>
